<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/12/30 0030
  Time: 12:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>夙愿贴吧</title>
    <%--引用jquery--%>
    <script type="text/javascript" src="static/js/jquery-3.3.1.min.js"></script>
    <%--引入Jquery--%>
    <%--引入样式--%>
    <link href="static/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">
    <script src="static/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>


</head>
<body>
   <a href="makePost.jsp"><h3>我要发帖...</h3></a>  <br>

    <div class="container">
    <table class="table">
        <thead>
        <tr class="info" style="font-weight:bold;" >
            <th>标题</th>
            <th>发帖人</th>
            <th>    发帖时间</th>
            <th>浏览量</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${list}" var="each">
                <tr class="danger" id="dataTopic">
                    <td><a href="/findAllTopicbyId.do?id=${each.id}">${each.title}</a></td>
                    <td>${each.author}</td>
                    <td><fmt:formatDate value="${each.cretime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                    <td>${each.amount}</td>
                </tr>
        </c:forEach>
        </tbody>
    </table>
    </div>

</body>
</html>
